Browse: 🏠 · Solutions · Connectors · Methods · Tables · Content · Parsers · ASIM Parsers · ASIM Products · Logic Apps · 📊
On a Microsoft Sentinel incident, enriches File, and URL entities using Microsoft Defender for Endpoint Live Response and ANY.RUN Sandbox. Files are located via DeviceFileEvents, collected from the endpoint, uploaded to Azure Blob Storage, and detonated in Windows or Linux sandbox. URLs are submitted directly to ANY.RUN. Results are added as incident comments and IOCs are uploaded to Threat Intelligence.
| Attribute | Value |
|---|---|
| Type | Playbook |
| Solution | ANYRUN |
| Source | View on GitHub |
This content item queries data from the following tables:
| Table | Selection Criteria | Transformations | Ingestion API | Lake-Only |
|---|---|---|---|---|
DeviceFileEvents |
ActionType == "FileCreated" |
✓ | ✗ | ✓ |
This playbook uses 7 Logic App connectors / built-in actions:
| Connector / Action | Type | Connections | Actions |
|---|---|---|---|
azureblob |
Managed | 1 | 1 |
azuremonitorlogs |
Managed | 1 | 1 |
azuresentinel |
Managed | 1 | 20 |
keyvault |
Managed | 1 | 1 |
wdatp |
Managed | 1 | 5 |
function |
Built-in | 0 | 3 |
http |
Built-in | 0 | 9 |
azureblob (Managed)| Action | Method | Endpoint | Other |
|---|---|---|---|
| Get_blob_content_(V2) | get | /v2/datasets/@{encodeURIComponent(encodeURIComponent(variables('Storage Account Name')))}/files/@{encodeURIComponent(encodeURIComponent('/',variables('Container Name'),'/',variables('Suspicious File - FileName')))}/content |
— |
azuremonitorlogs (Managed)| Action | Method | Endpoint | Other |
|---|---|---|---|
| KQL_-_Get_FilePath | post | /queryData |
— |
azuresentinel (Managed)| Action | Method | Endpoint | Other |
|---|---|---|---|
| Entities_-_Get_Hosts | post | /entities/host |
— |
| Add_comment_to_incident_(V3)_-_File_Does_not_upload_to_Blob | post | /Incidents/Comment |
— |
| Add_comment_to_incident_-_Analysis_Started | post | /Incidents/Comment |
— |
| Add_comment_to_incident_(V3)_-_Unsupported_OS_for_analysis | post | /Incidents/Comment |
— |
| Update_incident_-_Add_Tags | put | /Incidents |
— |
| Threat_Intelligence_-Upload_Indicators_of_Compromise(V2)_-_Malicious_IOCs | post | /V2/ThreatIntelligence/@{encodeURIComponent(triggerBody()?['workspaceId'])}/UploadIndicators/ |
— |
| Threat_Intelligence_-Upload_Indicators_of_Compromise(V2)_-_Suspicious_IOCs | post | /V2/ThreatIntelligence/@{encodeURIComponent(triggerBody()?['workspaceId'])}/UploadIndicators/ |
— |
| Add_comment_to_incident_(V3)_-_ANY.RUN_Output | post | /Incidents/Comment |
— |
| Add_comment_to_incident_(V3)_-_CleanScan_ANY.RUN_Output | post | /Incidents/Comment |
— |
| Add_comment_to_incident_-_Pending_Live_Response_Response | post | /Incidents/Comment |
— |
| Add_comment_to_incident_(V3)_-_KQL_Result_is_empty | post | /Incidents/Comment |
— |
| Add_comment_to_incident_(V3)_-_Pending_Anti_Virus_Scan | post | /Incidents/Comment |
— |
| Entities_-_Get_URLs | post | /entities/url |
— |
| Add_comment_to_incident_-_Analysis_Started_URL | post | /Incidents/Comment |
— |
| Update_incident_-_Add_Tags_URL | put | /Incidents |
— |
| Threat_Intelligence_-Upload_Indicators_of_Compromise(V2)_-_Malicious_IOCs_URL | post | /V2/ThreatIntelligence/@{encodeURIComponent(triggerBody()?['workspaceId'])}/UploadIndicators/ |
— |
| Threat_Intelligence_-Upload_Indicators_of_Compromise(V2)_-_Suspicious_IOCs_URL | post | /V2/ThreatIntelligence/@{encodeURIComponent(triggerBody()?['workspaceId'])}/UploadIndicators/ |
— |
| Add_comment_to_incident_(V3)_-ANY.RUN_Output-_URL | post | /Incidents/Comment |
— |
| Add_comment_to_incident_(V3)_-_Clean_Scan_URL_ANY.RUN_Output | post | /Incidents/Comment |
— |
| Add_comment_to_incident_-_OS_versions_unsupported | post | /Incidents/Comment |
— |
keyvault (Managed)| Action | Method | Endpoint | Other |
|---|---|---|---|
| Get_secret_-_ANYRUN | get | /secrets/@{encodeURIComponent('ANYRUN-APIKey')}/value |
— |
wdatp (Managed)| Action | Method | Endpoint | Other |
|---|---|---|---|
| Actions_-_Get_single_machine_action | get | /api/machineactions/@{encodeURIComponent(body('Actions_-_Run_live_response')?['id'])} |
— |
| Actions_-_Run_live_response | post | /api/machines/@{encodeURIComponent(body('Parse_JSON_-_Each_Host')?['additionalData']?['MdatpDeviceId'])}/runliveresponse |
— |
| Actions_-_Get_live_response_command_result_download_URI | get | /api/machineactions/@{encodeURIComponent(body('Actions_-_Get_single_machine_action')?['id'])}/GetLiveResponseResultDownloadLink(index=@{encodeURIComponent('0')}) |
— |
| Machines_-_Get_single_machine | get | /api/machines/@{encodeURIComponent(body('Parse_JSON_-_Each_Host')?['additionalData']?['MdatpDeviceId'])} |
— |
| Actions_-_Run_antivirus_scan | post | /api/machines/@{encodeURIComponent(body('Parse_JSON_-_Each_Host')?['additionalData']?['MdatpDeviceId'])}/runAntiVirusScan |
— |
function (Built-in)| Action | Method | Endpoint | Other |
|---|---|---|---|
| ANYRUN-Sentinel-FA_Windows_File_Analysis | — | — | functionId=[concat('/subscriptions/', subscription().subscriptionId, '/resourceGroups/', resourceGroup().name, '/providers/Microsoft.Web/sites/', variables('connectFunctionAppName'), '/functions/ANYRUN-Sentinel-FA')] |
| ANYRUN-Sentinel-FA_Ubuntu_File_Analysis | — | — | functionId=[concat('/subscriptions/', subscription().subscriptionId, '/resourceGroups/', resourceGroup().name, '/providers/Microsoft.Web/sites/', variables('connectFunctionAppName'), '/functions/ANYRUN-Sentinel-FA')] |
| ANYRUN-Sentinel-FA_Debian_File_Analysis | — | — | functionId=[concat('/subscriptions/', subscription().subscriptionId, '/resourceGroups/', resourceGroup().name, '/providers/Microsoft.Web/sites/', variables('connectFunctionAppName'), '/functions/ANYRUN-Sentinel-FA')] |
http (Built-in)| Action | Method | Endpoint | Other |
|---|---|---|---|
| HTTP_-_Download_Response_Body | GET | @body('Actions_-_Get_live_response_command_result_download_URI')?['value'] |
— |
| HTTP-CheckFile-Result | GET | https://api.any.run/v1/analysis/monitor/@{variables('UUID')} |
— |
| HTTP-Full-JSON-Report | GET | https://api.any.run/v1/analysis/@{variables('UUID')} |
— |
| HTTP-GetIOC | GET | https://api.any.run/report/@{variables('UUID')}/ioc/json |
— |
| HTTP_-_Generate_SAS_Token | POST | [uri(environment().resourceManager, variables('listServiceSasRelativePath'))] |
— |
| HTTP-RunNewURLAnalysis | POST | https://api.any.run/v1/analysis |
— |
| HTTP-CheckURL-Result | GET | https://api.any.run/v1/analysis/monitor/@{variables('UUID')} |
— |
| HTTP-Full-JSON-Report_URL | GET | https://api.any.run/v1/analysis/@{variables('UUID')} |
— |
| HTTP-GetIOC_URL | GET | https://api.any.run/report/@{variables('UUID')}/ioc/json |
— |
📄 Source: Sandbox-File-Defender/readme.md
When a Microsoft Sentinel incident is created, this playbook:
ANYRUN-Sentinel-FA.Shared prerequisites (Key Vault secret ANYRUN-APIKey, App Registration, API permissions, role assignments, and Storage Account) are described in the solution README.
Additional requirements for this playbook:
ANYRUN-Sentinel-FA must be deployed in the same subscription and resource group.Click below to deploy Azure Logic App with Flex Consumption plan

Enter the parameters required for deploying the Logic App and click Review + create.
Description of the required parameters:
| Parameter | Description |
|---|---|
| PlaybookName | Logic App name (default ANYRUN-Sandbox-Defender). |
| Azure Tenant ID | Tenant ID for authentication in connections. |
| Azure Client ID | Client ID of the App Registration created for the solution. |
| Azure Blob Storage Account Name | Storage account used to store files before they are submitted to ANY.RUN. |
| Azure Blob Storage Container Name | Container name in the storage account. |
| Azure Blob Storage Connection String | Connection string of the storage account. |
| Log Analytics Workspace | Log Analytics workspace name. |
| functionAppName | Name of the deployed Function App. |
After deployment, open the Logic App and authorize the API connections created by the template:
Edit each connection, sign in, and save.
To generate an SAS token for Azure Blob Storage, you need to assign the appropriate role directly to the Logic App.
Open your Storage Account.
Navigate to Access Control (IAM) and click Add.

Specify the Logic App ANYRUN-Sandbox-Defender.
Select the following role:
| Name | Description |
|---|---|
| Storage Account Contributor | Lets you manage storage accounts, including accessing storage account keys which provide full access to storage account data. |
Note:
To allow the connector to extract all files of interest from endpoints (including potentially dangerous ones), we recommend setting Quarantine as the default action for your MDE.
Open your MDE portal.
Navigate to System > Settings > Endpoints > General > Advanced features.
Enable the following settings: Live Response, Live Response for Servers, and Live Response unsigned script execution.

Open your MDE portal.
Navigate to Assets > Devices.
[Content truncated...]
Browse: 🏠 · Solutions · Connectors · Methods · Tables · Content · Parsers · ASIM Parsers · ASIM Products · Logic Apps · 📊